<?php

require '../conf.php';

class Sea extends FormWriter {

  protected $db = array(
    '.name' => 'FW_sea',
    '.user' => USER,
    '.pw'   => PW,
    'Sailors' => array(
      'sid'    => 'int',
      'sname'  => 'str',
      'rating' => 'int',
      'age'    => 'real',
      '.key'   => 'sid'
    ),
    'Boats' => array(
      'bid'   => 'int',
      'bname' => 'str',
      'color' => 'str',
      '.key'  => 'bid'
    ),
    'Reserves' => array(
      'sid'  => 'Sailors.sid',
      'bid'  => 'Boats.bid',
      'day'  => 'date',
      '.key' => array(
        'sid,bid,day',
        'Sailors.sid',
        'Boats.bid'
      )
    ),
    'Students' => array(
      'sid'   => 'int',
      'name'  => 'str',
      'login' => 'str',
      'age'   => 'real',
      '.key'  => 'sid'
    )
  );
}

# End of file
# vim: set ts=2 sw=2 et:
?>
